package com.ym.soso.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.base.enums.FlagEnum;
import com.ym.soso.enums.AuditStateEnum;
import com.ym.soso.enums.SubjectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评价记录表对象 comment_record
 *
 * @author ym
 * @date 2020-03-24
 */
@ApiModel("soso评价记录表-列表")
@Data
public class OrgCommentRecordVO implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("关联ID")
    private Long relId;

    @ApiModelProperty("关联类型 (01-医院 02-中医堂 03-药店 04-养老 05-体检 06-鼻炎馆 07-综合门诊 08-心理咨询)")
    @JsonSerialize(converter = SubjectTypeEnum.Covert.class)
    private String relType;

    @ApiModelProperty("评价内容")
    private String content;

    @ApiModelProperty("评价星数")
    private Long starNum;

    @ApiModelProperty("评价人")
    private Long comontSb;

    @ApiModelProperty("评价人头像")
    private String comontPic;

    @ApiModelProperty("评价人名称")
    private String comontName;

    @ApiModelProperty("图片")
    private String pic;

    @ApiModelProperty("是否匿名(01-是 00-否)")
    @JsonSerialize(converter = FlagEnum.Covert.class)
    private String anony;

    @ApiModelProperty("审核人")
    private Long auditSb;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("审核状态 (01- 待审核 02-审核通过 03-审核未通过)")
    @JsonSerialize(converter = AuditStateEnum.Covert.class)
    private String auditState;

    @ApiModelProperty("审核说明")
    private String auditRemark;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("机构名称")
    private String relName;

    @ApiModelProperty(notes = "创建时间")
    private Date createTime;

}
